//index.js
//获取应用实例
const app = getApp()

Page({
	data: {
		showImg:false,
		customer:{},
		defaultImg:"",
	},
	showFront:function(){
		this.setData({
			showImg: true,
			defaultImg:this.data.customer.idfrontImg
		})
	},
	showBack:function(){
		this.setData({
			showImg: true,
			defaultImg:this.data.customer.idbackImg
		})
	},
	showHold:function(){
		this.setData({
			showImg: true,
			defaultImg:this.data.customer.holdImg
		})
	},
	hideBig:function(){
		this.setData({
			showImg: false
		})
	},
	onLoad: function() {
		let _this = this;
		wx.getStorage({
		 	key: 'customerInfo',
		  	success: function(res) {
		      	_this.setData({
					customer: res.data,
				})
		  	} 
		})
	}
	
})